#pragma GCC optimize(2, "Ofast", "inline")
#include <iostream>
#include <string>
#define endl '\n'
using namespace std;

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    
    int n, a, b;
    string s;
    
    cin >> n >> a >> b;
    cin >> s;
    
    // 输出从S中删除前A个字符和后B个字符后得到的字符串
    cout << s.substr(a, n - a - b) << endl;
    
    return 0;
}